package com.itestor.iptv.modules.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * 用户权限关联表
 * @author masaki
 *
 */
@Entity
@IdClass(UserRoleGroupPK.class)
@Table(name = "UserRoleGroup")
public class UserRoleGroup implements Serializable{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -9131603212006710487L;
	/**
	 * 用户ID
	 */
	private Integer idUser;
	/**
	 * 权限组ID
	 */
	private Integer idRoleGroup;
	
	@Id
	@Column(name = "IdUser" , nullable = false)
	public Integer getIdUser() {
		return idUser;
	}
	@Id
	@Column(name = "idRoleGroup")
	public Integer getIdRoleGroup() {
		return idRoleGroup;
	}
	public void setIdUser(Integer idUser) {
		this.idUser = idUser;
	}
	public void setIdRoleGroup(Integer idRoleGroup) {
		this.idRoleGroup = idRoleGroup;
	}
}
